﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MShop.Web.Models.RegisterModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div id="content" class="ovfl">
        <div class="reg">
             <% using (Html.BeginForm("Register","account", new{@returnurl=Request.Params["ReturnUrl"]},FormMethod.Post,null))
    { %>
            <h2>
                注册
            </h2>
            <div>
                <%: Html.ValidationSummary(true) %>
                <p>
                    <%: Html.LabelFor(m => m.UserName) %>：
                    <%: Html.TextBoxFor(m => m.UserName, new { @class = "txt" })%><em>*</em>
                    <%: Html.ValidationMessageFor(m => m.UserName) %>
                </p>
                <p>
                    <%: Html.LabelFor(m => m.Email) %>：
                    <%: Html.TextBoxFor(m => m.Email, new { @class = "txt" })%><em>*请填写有效的邮箱，用于找回密码！</em>
                    <%: Html.ValidationMessageFor(m => m.Email) %>
                </p>
                <p>
                    <%: Html.LabelFor(m => m.Password) %>：
                    <%: Html.PasswordFor(m => m.Password, new { @class = "txt" })%><em>*密码最少<%=ViewData["PasswordLength"]%>位</em>
                    <%: Html.ValidationMessageFor(m => m.Password) %>
                </p>
                <p>
                    <%: Html.LabelFor(m => m.ConfirmPassword) %>：
                    <%: Html.PasswordFor(m => m.ConfirmPassword, new { @class = "txt" })%><em>*</em>
                    <%: Html.ValidationMessageFor(m => m.ConfirmPassword) %>
                </p>  <p>
                <div class="center">
                    <input type="submit" class="btn_login" value="注册" />
                </div> </p> 
            </div>
            <% } %>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphMeta" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphFooter" runat="server">
</asp:Content>
